<template>
    <div>
      Home
      <hr />
      {{ userInfo.name }} - {{ userInfo.age }}
      <svg-icon class-name="icon" icon="menus/area"></svg-icon>
      <svg-icon class-name="icon" icon="location"></svg-icon>
      <a-button v-permission="['add']" type="primary" @click="changeUserInfo"
        >改变1</a-button
      >
    </div>
  </template>
  <script setup lang="ts">
  import SvgIcon from "@/components/svg-icon/index.vue";
  import userStore from "@/store/user";
  
  const userInfo = userStore();
  const changeUserInfo = () => {
    // let age:number = userInfo.age + 1;
    // userInfo.updateUserInfo("cesgiu", age);
  };
  </script>